#!/bin/sh
grep '^gmnisrv:' /etc/group >/dev/null || addgroup -S gmnisrv 2>/dev/null
grep '^gemini:' /etc/group >/dev/null || addgroup -S gemini 2>/dev/null
grep '^gmnisrv:' /etc/passwd >/dev/null || adduser -SDh/srv/gemini \
	-s/sbin/nologin -Ggemini -ggmnisrv gmnisrv gmnisrv 2>/dev/null
install -dm755 -ggemini /srv/gemini
install -dm755 -ggmnisrv /var/lib/gemini/certs
